package com.fanrenqiji.service;

import com.fanrenqiji.common.service.IBaseService;
import com.fanrenqiji.vo.ParentVO;

/**
 * Created by yanwt on 2017/3/21.
 */
public interface IParentService extends IBaseService<ParentVO> {
   public  void updateByOpenId(ParentVO parent,String openId);
   public ParentVO getParentbyOpenId(String openId);
   public void saveByPhone(ParentVO paren,String openId);
   public String getPhoneByOpenId(String openId);

   /**
    * 根据 openId获取 parentId 该方法做缓存
    * @param openId
    * @return
    */
   public String getParentIdbyopenId(String openId);
}
